<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>知识竞赛Pk</title>
		<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0' />
		<link rel="stylesheet" href="css/pkRecord.css" />
		<link rel="stylesheet" type="text/css" href="css/hehua.css" />
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script src="//res.qiaomukeji.com/js/chomoo-weixin.js?v=3"></script>
		<script type="text/javascript" src="js/moduls/islogin.js"></script>
		<script src="js/moduls/pk.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="js/adapter.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

	</head>

	<body>
		<div class="top">
			<div class="top-logo">
			</div>
			<div class="top-theme">
			</div>
			<div class="top-title">
			</div>

			<div class="top-btnBack" onclick="history.go(-1);">
			</div>
		</div>
		<div class="bottom">
			<div class="bottom-logo2">
			</div>
		</div>
		<div class="content">

			<div class="middlePath">
				<div class="title">
					<img src="img/myPK.png" alt="">
				</div>
				<div class="line">
					<img src="img/line.png" alt="">
				</div>
				<div class="midContent" style="color: #A10E00;">
					<div class="state">状态筛选</div>
					<!--<div class="statusChose" style="position: absolute;"></div>-->
					<div class="win">胜负筛选</div>
					<!--<div class="statusChose"></div>-->

				</div>
				<div class="hhtable">
					<div class="hhtable-content" style="height: 4rem;">
						<div class="hhtable-header">
							<table>
								<thead>
									<tr>
										<td class="active" style="width: 20%;">对象</td>
										<td style="width: 15%;">状态</td>
										<td style="width: 15%;">比分</td>
										<td style="width: 15%;">胜负</td>
										<td style="width: 15%;">荷花数</td>
										<td style="width: 20%;">时间</td>
									</tr>
								</thead>

							</table>
						</div>
						<div class="hhtable-body">
							<table>
								<tbody>
									<tr v-for="(record,index) in records" :key="index">
										<td style="width:20%;overflow: hidden;position: relative;">
											<!--<div class="avatar" style="width:0.3rem;;margin: 0 auto;">
											
											</div>-->
											<img :src="record.avatar" style="border-radius: 50%;width: 0.3rem;" />
											<!--{{record.rivaId}}-->
											<div style="width: 60%;overflow: hidden;position: absolute;">111111111</div>
										</td>
										<td style="width: 15%;">{{record.status}}</td>
										<td style="width: 15%;">{{record.scores}}</td>
										<td style="width: 15%;">{{record.result}}</td>
										<td style="width:15%;">{{record.lotusNum}}</td>
										<td style="width: 20%;">{{record.createdAt}}</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>

				<div class="page">
					<!--<span>页码</span>
        <span>1</span>
        <span>2</span>
        <span>3</span>
        <span>4</span>
        <span>5</span>
        <span>6</span>-->
				</div>

			</div>
		</div>

	</body>
	<script>
		function getPara(_key) {
			var reg = new RegExp("(^|&)" + _key + "=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if(r != null) return unescape(r[2]);
			return null;
		}
		var id = getPara("teamId") || 1;
		var t_skey = getPara("skey") || "chomoo_test_001";
		var app = new Vue({
			el: '.content',
			data: {

				records: []

			}

		})

		//我的知识竞赛pk
		getPkInfo(t_skey, function(_res) {
			app.records = _res.data
		})
	</script>

</html>